<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../utils.js"></script>
</head>
<body>
    <button onclick="sendMsg()">发送jsonp请求</button>
    <script>
        function render (shop) {
            console.log(shop)
        }
        function sendMsg () {
            // 发送jsonp请求
            utils.jsonp('http://localhost/day30-ajax-promise/code/04.php', 'render', { id: 6 })
        } 
    </script>
</body>
</html>